package com.leo.springevent;

import com.leo.util.DateUtil;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @ClassName: springevent
 * @Description: ${description}
 * @Author: leo825
 * @Date: 2020-02-28 21:51
 * @Version: 1.0
 */
public class MySpringEvent implements ApplicationListener{

    @Override
    public void onApplicationEvent(ApplicationEvent applicationEvent) {
        System.out.println(DateUtil.getTimeNow() + "我的事件执行了：" + applicationEvent);
    }
}
